﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace UFSSWebApp
{
    public partial class UFSSMaster : System.Web.UI.MasterPage
    {
        UFSSservicereference.UserCreds uc = new UFSSservicereference.UserCreds();
        UFSSservicereference.UFSSserviceSoapClient ussc = new UFSSservicereference.UFSSserviceSoapClient();

        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void lbtnLogout_Click(object sender, EventArgs e)
        {
            if (Session.Count == 0)
                Response.Redirect("~/index.aspx");

            uc = (UFSSservicereference.UserCreds)Session["usercreds"];
            ussc.LogoutUser(ref uc);
            Session.Abandon();
            Response.Redirect("~/index.aspx");
        }
    }
}